{include file="file:$theme_global/_header.tpl"}

<div id="sidebar">
	<div>
	<h2>Need an account?</h2>
		<a href="/user/register" title="Register for an account">Register</a> for an account.
	</div>			
	<div>
	<h2>Forgot your password?</h2>
		<a href="/user/forgotpassword" title="Reset Password">Reset</a> your password.
	</div>			
</div>

<div id="main">
	<div class="title"><h1>{$pagetitle}</h1></div>
	{include file="file:$theme_global/_messages.tpl"}
	<form method="post" action="/user/register" enctype="multipart/form-data">
		<fieldset>
			<p class="field">
				<label for="username">Username</label><br />
				<input maxlength="{$username_length}" type="text" value="{$user.username}" name="username" id="username" class="text" />
			</p>
			<p class="field">
				<label for="password">Password</label><br />
				<input type="password" maxlength="32" value="" name="password" id="password" class="text" />					
			</p>
			<p class="field">
				<label for="confirm">Password (again)</label><br />
				<input type="password" maxlength="32" value="" name="confirm" id="confirm" class="text" />					
			</p>
		</fieldset>
		<fieldset>
			<p class="field">
				<label for="full_name">Full Name</label><br />
				<input maxlength="{$full_name_length}" type="text" value="{$user.full_name}" name="full_name" id="full_name" class="text" />
			</p>
			<p class="field">
				<label for="email">Email</label><br />
				<input type="text" value="{$user.email}" name="email" id="email" class="text" />					
			</p>
			<p class="field birthday">
				<label>Birthday</label><br />
				{html_select_date time=$user.birthday start_year=-100 month_value_format='%B' prefix='Birthday_'}					
			</p>
		
		</fieldset>
		<button type="submit" class="submit">Submit</button>					
	</form>
</div>
{include file="file:$theme_global/_footer.tpl"}